package com.group.controller;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.group.pojo.TbDeviceAttr;
import com.group.service.DeviceAttrService;

/**
 * 设备属性服务
 * 
 * @author YSH
 *
 */
@Controller
@RequestMapping("/deviceAttr")
public class DeviceAttrController {
	@Autowired
	private DeviceAttrService deviceAttrService;

	 
	
	@RequestMapping("/query.action")
	@ResponseBody
	public List<TbDeviceAttr> query(TbDeviceAttr deviceAttr) {
		List<TbDeviceAttr> list = deviceAttrService.query(deviceAttr);
		return list;
	}
	
}
